<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      table {
        border: 1px solid black;
        border-collapse: collapse;
        margin: 300px auto;
      }
      table th {
        padding: 20px;
        border: 1px solid black;
      }
    </style>
  </head>
  <body>
    <script>
      let money = prompt("请输入你的银行卡金额");
      let water = prompt("请输入您的水费");
      let electricity = prompt("请输入您的电费");
      let network = prompt("请输入您的网费");
      let balance = money - water - electricity - network;
      document.write(
        `  
        <table>
        <tr>
        <th>您的银行卡金额为${money}</th>
        <th>您的水费为${water}</th>
        <th>您的电费为${electricity}</th>
        <th>您的电费为${network}</th>
        <th>您的银行卡余额为${balance}</th>
        </tr>
        </table>
        `
      );
    </script>
  </body>
</html>
